package com.dq.Week1.day04.arr;

import java.util.Scanner;

public class Demo01 {

    public static void main(String[] args) {
        //静态初始化
        int[] arr1 = {1,2,3,4,5};

        int[] arr2 = new int[]{1,2,3,4,5};
        //动态初始化
        int[] arr3 = new int[10];
        int arr4[] = new int[10];

        for (int i = 0; i < arr3.length; i++)
        {
            arr3[i] = i;
            System.out.println(arr3[i]);
        }

        boolean[] flag = {true,false,true,true};
        System.out.println(flag.length);
        System.out.println(flag[3]);


        Scanner[] scanners = new Scanner[3];
        scanners[0] = new Scanner(System.in);
        scanners[1] = new Scanner(System.in);
        scanners[2] = new Scanner(System.in);

        String line = scanners[0].nextLine();

    }
}
